package com.maybach.core.manager;

import com.maybach.util.query.support.PageResult;
import com.maybach.common.model.OrderDO;
import com.maybach.common.query.OrderQuery;

import java.util.List;


/**
 * Manager for Order.
 */
public interface OrderManager {
    /**
     * query count by query condition.
     */
    int countByQuery(OrderQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(OrderQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(OrderDO record);

    /**
     * insert selective.
     */
    long insertSelective(OrderDO record);

    /**
     * select by query condition.
     */
    List<OrderDO> selectByQuery(OrderQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<OrderDO> selectByQueryWithPage(OrderQuery query);

    /**
     * select by primary key.
     */
    OrderDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( OrderDO record,  OrderQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(OrderDO record, OrderQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(OrderDO record);
}